package com.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    /**
     *
     * @return
     */
    @RequestMapping(value = "/index",name = "name是注释用的 加不加无所谓")
    public String index(){
        return "index";
    }

    //value和path是一样的用法
    @RequestMapping(value = "/goods")
    public String goods(){
        return "index";
    }

    @RequestMapping(path = "/store")
    public String store(){
        return "index";
    }

    @RequestMapping(path = {"/order","/user/getById"})
    public String order(){
        return "index";
    }

}
